libxl: libxl__device_pci_destroy_all should succeed if there is no PCI bus
authorIan Campbell <ian.campbell@citrix.com>
Wed, 2 Nov 2011 16:25:18 +0000 (16:25 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 2 Nov 2011 16:25:18 +0000 (16:25 +0000)
commit70e7871d0f8fef6271e3ec3d19ecbaa78eb98d9f
tree52d88e47431f20cf0f44a9f45b1e2d712ffd6212
parent9a190b2c54716d10753bda1c8b1c6f64c4a05d72
libxl: libxl__device_pci_destroy_all should succeed if there is no PCI bus

Since 23915:4c4b72c94bac "" it is possible that no bus exists and this is not
an error. Removes the following spurious warning when destroying a PV domain
with no PCI devices:
    libxl: error: libxl.c:759:libxl_domain_destroy: pci shutdown failed
for domid 1005

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_pci.c